package com.ibeifeng.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ibeifeng.crm.bean.Customer;
import com.ibeifeng.crm.dao.CustomerDao;
import com.ibeifeng.crm.service.CourseService;
import com.ibeifeng.crm.service.CustomerService;

@Service
public class CustomerServiceImpl implements CustomerService {
	@Resource
	CustomerDao customerDao;
	@Override
	public List<Customer> queryAll() {
		return customerDao.queryAll();
	}

	@Override
	public int add(Customer customer) {
		return customerDao.add(customer);
	}

	@Override
	public int update(Customer customer) {
		return customerDao.update(customer);
	}

	@Override
	public int delete(Customer customer) {
		return customerDao.delete(customer);
	}

	@Override
	public Customer queryCourse(Customer customer) {
		return customerDao.queryCourse(customer);
	}

	@Override
	public int count() {
		return customerDao.count();
	}

	@Override
	public List<Customer> findAllSplit(int pg, int pgSize) {
		return customerDao.findAllSplit(pg,pgSize);
	}

	@Override
	public List<Customer> mquery(int pg, int pgSize, String keyWord) {
		// TODO Auto-generated method stub
		return customerDao.mquery(pg, pgSize, keyWord);
	}

	

}
